package com.jgp.sys.repository;

import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2019-11-17
 */
@FunctionalInterface
public interface SpecPredicate<M> {
    
    Predicate build(Root<M> root, CriteriaQuery<?> query, CriteriaBuilder builder);
    
}
